Developer Documentation

QuickTime 4 API Documentation

Inside Macintosh: QuickTime Components

Previous | Overview | Contents

Constants

/* sequence grabber component type */
#define SeqGrabComponentType 'barg'

/* sequence grabber channel type */
#define SeqGrabChannelType 'sgch'

/* SGGrabPict function grabPictFlags parameter flags */
enum {
        grabPictOffScreen = 1,              /* place in offscreen graphics world */
        grabPictIgnoreClip = 2              /* ignore channel clipping regions */
    };

/* flag for SGSetFlags and SGGetFlags functions */
#define sgFlagControlledGrab (1)/* controlled grab */

/* flags for SGSetChannelPlayFlags and SGGetChannelPlayFlags functions */
#define channelPlayNormal 0                 /* use default playback methodology */
#define channelPlayFast 1                   /* achieve fast playback rate */
#define channelPlayHighQuality 2            /* achieve high quality image */
#define channelPlayAllData 4                /* play all captured data */

/* flags for SGSetDataOutput and SGGetDataOutput functions */
enum {
    seqGrabToDisk                       = 1,    /* write recorded data to movie */
    seqGrabToMemory                     = 2,    /* store recorded data in memory */
    seqGrabDontUseTempMemory            = 4,    /* no temporary memory for recorded
                                                    data */
    seqGrabAppendToFile                 = 8,    /* add recorded data to file's data
                                                    fork */
    seqGrabDontAddMovieResource = 16, /* don't add movie resource to file */
    seqGrabDontMakeMovie                = 32    /* don't put data into movie */
};
typedef unsigned char SeqGrabDataOutputEnum;
/* usage flags for SGSetChannelUsage and SGGetChannelUsage functions */
enum {
    seqGrabRecord                   = 1,    /* used during record operations */
    seqGrabPreview                  = 2,    /* used during preview operations */
    seqGrabPlayDuringRecord = 4             /* plays data during record operation */
};
typedef unsigned char SeqGrabUsageEnum;

/* SGGetChannelInfo function flags */
enum {
    seqGrabHasBounds                    = 1,    /* visual representation of data */
    seqGrabHasVolume                    = 2,    /* audio representation of data */
    seqGrabHasDiscreteSamples           = 4     /* data organized in discrete frames */
};typedef unsigned char SeqGrabChannelInfoEnum;


/*  device list structure flags */

#define sgDeviceListWithIcons (1)                               /* include icons */
#define sgDeviceListDontCheckAvailability (2)                   /* don't check available */
/*  data function write operation types */

enum {
    seqGrabWriteAppend,                         /* append to file */
    seqGrabWriteReserve,                        /* reserve space in file */
    seqGrabWriteFill                            /* fill reserved space */
};

/*  SGPause and SGGetPause options */

enum {
    seqGrabUnpause = 0,                                     /* release grabber */
    seqGrabPause = 1,                                       /* pause all playback */
    seqGrabPauseForMenu = 3                                 /* pause for menu display */
};
/* selectors for basic sequence grabber component functions */
    kSGInitializeSelect                         = 0x1;      /* SGInitialize */
    kSGSetDataOutputSelect                      = 0x2;      /* SGSetDataOutput */
    kSGGetDataOutputSelect                      = 0x3;      /* SGGetDataOutput */
    kSGSetGWorldSelect                          = 0x4;      /* SGSetGWorld */
    kSGGetGWorldSelect                          = 0x5;      /* SGGetGWorld */       
    kSGNewChannelSelect                         = 0x6;      /* SGNewChannel */
    kSGDisposeChannelSelect                     = 0x7;      /* SGDisposeChannel */
    kSGStartPreviewSelect                       = 0x10;     /* SGStartPreview */
    kSGStartRecordSelect                        = 0x11;     /* SGStartRecord */
    kSGIdleSelect                               = 0x12;     /* SGIdle */
    kSGStopSelect                               = 0x13;     /* SGStop */
    kSGPauseSelect                              = 0x14;     /* SGPause */
    kSGPrepareSelect                            = 0x15;     /* SGPrepare */
    kSGReleaseSelect                            = 0x16;     /* SGRelease */
    kSGGetMovieSelect                           = 0x17;     /* SGGetMovie */
    kSGSetMaximumRecordTimeSelect               = 0x18;     /* SGSetMaximumRecordTime */
    kSGGetMaximumRecordTimeSelect               = 0x19;     /* SGGetMaximumRecordTime */
    kSGGetStorageSpaceRemainingSelect           = 0x1a;     /* SGGetStorageSpaceRemaining */            
    kSGGetTimeRemainingSelect                   = 0x1b;     /* SGGetTimeRemaining */            
    kSGGrabPictSelect                           = 0x1c;     /* SGGrabPict */
    kSGGetLastMovieResIDSelect                  = 0x1d;     /* SGGetLastMovieResID */
    kSGSetFlagsSelect                           = 0x1e;     /* SGSetFlags */
    kSGGetFlagsSelect                           = 0x1f;     /* SGGetFlags */
    kSGSetDataProcSelect                        = 0x20;     /* SGSetDataProc */
    kSGNewChannelFromComponentSelect = 0x21;                /* SGNewChannelFromComponent */
    kSGDisposeDeviceListSelect                  = 0x22;     /* SGDisposeDeviceList */
    kSGAppendDeviceListToMenuSelect             = 0x23;     /* SGAppendDeviceListToMenu */
    kSGSetSettingsSelect                        = 0x24;     /* SGSetSettings */
    kSGGetSettingsSelect                        = 0x25;     /* SGGetSettings */
    kSGGetIndChannelSelect                      = 0x26;     /* SGGetIndChannel */
    kSGUpdateSelect                             = 0x27;     /* SGUpdate */
    kSGGetPauseSelect                           = 0x28;     /* SGGetPause */
    kSGSettingsDialogSelect                     = 0x29;     /* SGSettingsDialog */
    kSGGetAlignmentProcSelect                   = 0x2A;     /* SGGetAlignmentProc */
    kSGSetChannelSettingsSelect                 = 0x2B;     /* SGSetChannelSettings */
    kSGGetChannelSettingsSelect                 = 0x2C;     /* SGGetChannelSettings */
/* selectors for common channel configuration functions */
    kSGCSetChannelUsageSelect               = 0x80;         /* SGCSetChannelUsage */
    kSGCGetChannelUsageSelect               = 0x81;         /* SGCGetChannelUsage */
    kSGCSetChannelBoundsSelect              = 0x82;         /* SGCSetChannelBounds */
    kSGCGetChannelBoundsSelect              = 0x83;         /* SGCGetChannelBounds */
    kSGCSetChannelVolumeSelect              = 0x84;         /* SGCSetChannelVolume */
    kSGCGetChannelVolumeSelect              = 0x85;         /* SGCGetChannelVolume */
    kSGCGetChannelInfoSelect                = 0x86;         /* SGCGetChannelInfo */
    kSGCSetChannelPlayFlagsSelect           = 0x87;        /* SGCSetChannelPlayFlags */            
    kSGCGetChannelPlayFlagsSelect           = 0x88;        /* SGCGetChannelPlayFlags */
    kSGCSetChannelMaxFramesSelect           = 0x89;        /* SGCSetChannelMaxFrames */
    kSGCGetChannelMaxFramesSelect           = 0x8a;         /* SGCGetChannelMaxFrames */
    kSGCSetChannelRefConSelect              = 0x8b;        /* SGCSetChannelRefCon */
    kSGCSetChannelClipSelect                = 0x8C;         /* SGCSetChannelClip */
    kSGCGetChannelClipSelect                = 0x8D;         /* SGCGetChannelClip */
    kSGCGetChannelSampleDescriptionSelect = 0x8E;
                                                    /* SGCGetChannelSampleDescription */
    kSGCGetChannelDeviceListSelect              = 0x8F;     /* SGCGetChannelDeviceList */
    kSGCSetChannelDeviceSelect                  = 0x90;     /* SGCSetChannelDevice */
    kSGCSetChannelMatrixSelect                  = 0x91;     /* SGCSetChannelMatrix */
    kSGCGetChannelMatrixSelect                  = 0x92;     /* SGCGetChannelMatrix */
    kSGCGetChannelTimeScaleSelect               = 0x93;     /* SGCGetChannelTimeScale */
    
    /* selectors for video channel configuration functions */
    kSGCGetSrcVideoBoundsSelect                 = 0x100;    /* SGCGetSrcVideoBounds */
    kSGCSetVideoRectSelect                      = 0x101;    /* SGCSetVideoRect */
    kSGCGetVideoRectSelect                      = 0x102;    /* SGCGetVideoRect */
    kSGCGetVideoCompressorTypeSelect            = 0x103;    /* SGCGetVideoCompressorType */
    kSGCSetVideoCompressorTypeSelect            = 0x104;    /* SGCSetVideoCompressorType */
    kSGCSetVideoCompressorSelect                = 0x105;    /* SGCSetVideoCompressor */
    kSGCGetVideoCompressorSelect                = 0x106;    /* SGCGetVideoCompressor */
    kSGCGetVideoDigitizerComponentSelect
                                                = 0x107;
                                                        /* SGCGetVideoDigitizerComponent */
    kSGCSetVideoDigitizerComponentSelect
                                                = 0x108;
                                                        /* SGCSetVideoDigitizerComponent */
    kSGCVideoDigitizerChangedSelect             = 0x109;    /* SGCVideoDigitizerChanged */
    kSGCSetVideoBottlenecksSelect               = 0x10a;    /* SGCSetVideoBottlenecks */
    kSGCGetVideoBottlenecksSelect               = 0x10b;    /* SGCGetVideoBottlenecks */
    kSGCGrabFrameSelect                         = 0x10c;    /* SGCGrabFrame */
    kSGCGrabFrameCompleteSelect                 = 0x10d;    /* SGCGrabFrameComplete */
    kSGCDisplayFrameSelect                      = 0x10e;    /* SGCDisplayFrame */
    kSGCCompressFrameSelect                     = 0x10f;    /* SGCCompressFrame */
    kSGCCompressFrameCompleteSelect             = 0x110;    /* SGCCompressFrameComplete */
    kSGCAddFrameSelect                          = 0x111;    /* SGCAddFrame */
    kSGCTransferFrameForCompressSelect = 0x112;
                                                        /* SGCTransferFrameForCompress */
    kSGCSetCompressBufferSelect                 = 0x113;    
                                                            /* SGCSetCompressBuffer */
    kSGCGetCompressBufferSelect                 = 0x114;    
                                                            /* SGCGetCompressBuffer */
    kSGCGetBufferInfoSelect                     = 0x115;    /* SGCGetBufferInfo */
    kSGCSetUseScreenBufferSelect                = 0x116;    /* SGCSetUseScreenBuffer */
    kSGCGetUseScreenBufferSelect                = 0x117;    /* SGCGetUseScreenBuffer */
    kSGCGrabCompressCompleteSelect              = 0x118; /* SGCGrabCompressComplete */
    kSGCDisplayCompressSelect                   = 0x119; /* SGCDisplayCompress */
    kSGCSetFrameRateSelect                      = 0x11A; /* SGCSetFrameRate */
    kSGCGetFrameRateSelect                      = 0x11B; /* SGCGetFrameRate */
    
    /* selectors for sound channel configuration functions */
    kSGCSetSoundInputDriverSelect                   = 0x100;    /* SGCSetSoundInputDriver */
    kSGCGetSoundInputDriverSelect                   = 0x101;    /* SGCGetSoundInputDriver */
    kSGCSoundInputDriverChangedSelect               = 0x102;    
                                                    /* SGCSoundInputDriverChanged */
    kSGCSetSoundRecordChunkSizeSelect               = 0x103;    
                                                    /* SGCSetSoundRecordChunkSize */
    kSGCGetSoundRecordChunkSizeSelect               = 0x104;
                                                    /* SGCGetSoundRecordChunkSize */
    kSGCSetSoundInputRateSelect                     = 0x105; /* SGCSetSoundInputRate */
    kSGCGetSoundInputRateSelect                     = 0x106; /* SGCGetSoundInputRate */
    kSGCSetSoundInputParametersSelect               = 0x107;
                                                            /* SGCSetSoundInputParameters */
    kSGCGetSoundInputParametersSelect               = 0x108;
                                                            /* SGCGetSoundInputParameters */
    
    /* selectors for utility functions provided to channel components */
    kSGWriteMovieDataSelect                     = 0x100; /* SGWriteMovieData */
    kSGAddFrameReferenceSelect                  = 0x101; / *SGAddFrameReference */
    kSGGetNextFrameReferenceSelect              = 0x102; /* SGGetNextFrameReference */
    kSGGetTimeBaseSelect                        = 0x103; /* SGGetTimeBase */
    kSGSortDeviceListSelect                     = 0x104; /* SGSortDeviceList */
    kSGAddMovieDataSelect                       = 0x105; /* SGAddMovieData */
    kSGChangedSourceSelect                      = 0x106; /* SGChangedSource */


© 1999 Apple Computer, Inc.

Previous | Overview | Contents